package cn.bgs.pojo;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 维修记录表
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Maintenance对象", description="维修记录表")
public class Maintenance implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "maintenance_id", type = IdType.AUTO)
    @ApiModelProperty(value = "维修记录表id")
    private Integer maintenanceId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "房屋名称")
    private String houseingName;

    @ApiModelProperty(value = "小区中间表id")
    private Integer middleId;

    @ApiModelProperty(value = "维修项目表id")
    private Integer maintenanceProjectsId;

    @ApiModelProperty(value = "维修项目类型表id")
    private Integer projectTypeId;

    @ApiModelProperty(value = "标题")
    private String theTitle;

    @ApiModelProperty(value = "问题描述")
    private String problemDescription;

    @ApiModelProperty(value = "手机号码")
    private Integer phone;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "预约时间")
    private Date appointmentTime;

    @ApiModelProperty(value = "维修流程（已提交、审核中、审核通过、审核失败）")
    private String maintenanceProcess;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;

    @ApiModelProperty(value = "关联维修项目表")
    private MaintenanceProjects maintenanceProjects;

    @ApiModelProperty(value = "关联小区中间表")
    private CellIntermediate cellIntermediate;



}
